package com.guqj.basis.proxy.jdk;

public class HeroProxyClient {

	public static void main(String[] args) {
		Hero traxex = new Traxex("崔丽丝", 25);
		HeroProxy proxy = new HeroProxy();
		Hero hero = (Hero) proxy.bind(traxex, new Class[] { Hero.class });
		System.out.println("class:" + hero.getClass().getName());
		System.out.println(hero.getName() + ":" + hero.getLevel());
		ProxyGeneratorUtils.writeProxyClassToHardDisk("E:\\$Proxy0.class");
	}
}
